import request from '@/utils/request';

export const getTurnoverPageApi = (params: any) => {
  return request({
    url: '/turnover/page',
    method: 'get',
    params
  });
}

export const postStatementSubmitApi = (data: any) => {
  return request({
    url: '/statement/submit',
    method: 'post',
    data
  });
}

export const putAdminTurnoverChangePlaceApi = (data) => {
  return request({
    url: '/turnover/changePlace',
    method: 'put',
    data
  });
}

export const putAdminTurnoverUpdateApi= (data) => {
  return request({
    url: '/turnover/update',
    method: 'put',
    data
  });
}

export const getAdminStatementListApi=(params) => {
  return request({
    url: '/statement/list',
    method: 'get',
    params
  });
}
//
// export const getStatementDetailApi = (id) => {
//   return request({
//     url: '/statement/detail/'+id,
//     method: 'get',
//   });
// }
// 修改结算单
export const putStatementUpdateApi = (data) => {
  return request({
    url: '/statement/update',
    method: 'put',
    data
  });
}
